package com.itheima.stock.service;

import com.itheima.stock.common.domain.InnerMarketDomain;
import com.itheima.stock.common.domain.StockUpdownDomain;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.pojo.StockRtInfo;
import com.itheima.stock.vo.resp.PageResult;
import com.itheima.stock.vo.resp.R;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.Map;

public interface StockService {

    List<StockBusiness> findAll();

    R<List<InnerMarketDomain>> getNewAMarketInfo();

    R<List<StockUpdownDomain>> getStockInfoLimit();

    R<PageResult<StockUpdownDomain>> getStockInfo4Page(Integer page, Integer pageSize);

    R<Map> getStockUpdownCount();

    void stockExport(HttpServletResponse response, Integer page, Integer pageSize) throws IOException;
}
